<?php

namespace App\Http\Requests\Admin;



use App\Http\Requests\BaseRequest;

class CategoryRequest extends BaseRequest
{

    public function rules()
    {
        return [
            'cate_name'=>'required|unique:categories,cate_name|min:1',


        ];
    }
    public function message(){
        return [
            'cate_name.required'=>'分类名称 不能为空'
        ];
    }
}
